﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="ProblemsList.aspx.cs" Inherits="Member_Know_KnowProblemsList" Title="管理我的提问" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
    <div class="inkg mar_top">
        <strong class="inkgt">
            管理我的提问</strong>
        <div class="intab mar_top" id="intab">
            <ul class="intabt">
                <li id="menu1" class="<%=verify=="2"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='ProblemsList.aspx?v=2'">全部问题</li>
                <li id="menu2" class="<%=verify=="1"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='ProblemsList.aspx?v=1'">已解决</li>
                <li id="menu3" class="<%=verify=="0"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='ProblemsList.aspx?v=0'">待解决</li>
            </ul>
        <div class="intabc" id="intabc">
            <div class="con" style="display: block">
                        <table cellpadding="0" cellspacing="0" border="0" class="edtb">
                            <thead>
                                <tr>
                                    <td id="xh" align="center">
                                        <strong>标题</strong>
                                    </td>
                                    <td align="center" width="50">
                                        <strong>回答数</strong>
                                    </td>
                                    <td align="center" width="70">
                                        <strong>是否审核</strong>
                                    </td>
                                    <td align="center" width="70">
                                        <strong>问题状态</strong>
                                    </td>
                                    <td align="center" width="70">
                                        <strong>提问时间</strong>
                                    </td>
                                    <td align="center" width="50">
                                        <strong>提问人</strong>
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
         <asp:Repeater  ID="grdProblem" runat="server"  > 
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                              <a href="<%=WebUrl %>Know/Detail-<%# Eval("ID") %><%=Rewrite %>" target="_blank">
                            <%# Eval("Caption") %>
                        </a>
                            </td>
                            <td width="50" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "AnswerCount")%>
                            </td>
                            <td width="70" align="center">
                                 <%# Eval("Verify").ToString()== "True" ? "已审" : "未审"%>
                            </td>
                            <td align="center" width="70">
                                <%# Eval("State").ToString() == "True" ? "已结贴" : "未结贴"%>
                            </td>
                            <td align="center" width="70">
                                <asp:Label ID="Label1" runat="server" Text='<%# Base.Common.GetShortDate(Eval("AddDate").ToString()) %>'></asp:Label>
                            </td>
                            <td align="center" width="50">
                                <%# DataBinder.Eval(Container.DataItem, "UserName")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater >
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <p class="zi1">
                                    </p>
                                    <p class="zi2">
                                         <uc1:PageNo ID="PageNo1" runat="server" />
                                    </p>
                                </td>
                            </tr>
                        </tfoot>
                        </table>
                         <input type="hidden" id="CheckedIDS" name="CheckedIDS" value="0" runat="server" />
        </div>
        <asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False"></asp:Label>
        </div>
        </div>
    </div>
</asp:Content>
